package com.kaishengit.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.DealDao;
import com.kaishengit.pojo.Deal;

@Service
@Transactional
public class DealService {
	
	private List<Deal> dealList;
	private DealDao dealDao;
	
	public List<Deal> findAll() {
		dealList = dealDao.findAll();
		return dealList;
	}
	
	
	
	
	//get  set  
	public List<Deal> getDealList() {
		return dealList;
	}
	public void setDealList(List<Deal> dealList) {
		this.dealList = dealList;
	}
	public DealDao getDealDao() {
		return dealDao;
	}
	@Autowired
	public void setDealDao(DealDao dealDao) {
		this.dealDao = dealDao;
	}
	
}
